#include <stdio.h>   /* Standard input/output definitions */
#include <string.h>  /* String function definitions */
#include <unistd.h>  /* UNIX standard function definitions */
#include <fcntl.h>   /* File control definitions */
#include <errno.h>   /* Error number definitions */
#include <termios.h> /* POSIX terminal control definitions */
#include <stdlib.h>  //exit()
#include <math.h>
int main(void){
	short int data[48];
	int nav_fd = open("/dev/ttyPA2", O_RDWR | O_NOCTTY | O_NDELAY);
	int n = read(nav_fd,data,48);
	
	printf ("n=%d\n",n);
	close(nav_fd);
	return 0;
}
